package com.dcw.lixb.designmode.adapter;

/**
 * @author lixiaobin
 * @date 2020-07-17 17:06:43
 * @desc 适配器模式使得音频播放器也能播放mp4和vlc文件了
 */
public class AdapterMain {
    public static void main(String[] args) {
        AudioPlayer audioPlayer = new AudioPlayer();

        audioPlayer.play("mp3", "123.mp3");
        audioPlayer.play("mp4", "123.mp4");
        audioPlayer.play("vlc", "123.vlc");
        audioPlayer.play("avi", "123.avi");
    }
}
